package ebuy.com.dao;

import ebuy.com.pojo.Commodity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface Commoditydao {
    List<Commodity>  Checkpopularproducts(@Param("position") Integer position);
    Commodity Queryaccordingtotheidoftheproduct(@Param("id") Integer id);
    //查询购物车
    List<Commodity> Checkshoppingcart(@Param("loginName") String loginName);
    //查询购物车的总数
   Integer  Checkthebalanceoftheshoppingcart(@Param("loginName") String loginName);
   String Queryaccordingtoshoppingcartid(Integer id);
   Integer Checkthepriceoftheproduct(@Param("id")Integer id,@Param("loginName") String loginName);

}
